//
// Created by herbert on 18-10-16.
//

#include <iostream>

int main() {
    int val = 1;
    int sum = 0;
    while (val <= 10) {
        sum += val;
        ++val;
    }
    std::cout << "1到10的总和为：" << sum << std::endl;
}